<?php
namespace Resources\model;

class Speaker
{
   public $ID;
   public $TITLE;
   public $FIRST_NAME;
   public $MIDDLE_NAME;
   public $LAST_NAME;
   public $GENDER;
   public $REMARK;
   /*update data*/
   /*    
       public $INSERT_USER_ID;
       public $UPDATE_USER_ID;
       public $INSERT_DATETIME;
       public $UPDATE_DATETIME;
       public $STATUS;
    */    
   public function exchangeArray($data)
   {
       $this->ID=(!empty($data['ID'])) ? $data['ID'] : null;
       $this->TITLE=(!empty($data['TITLE'])) ? $data['TITLE'] : null;
       $this->FIRST_NAME=(!empty($data['FIRST_NAME'])) ? $data['FIRST_NAME'] : null;
       $this->MIDDLE_NAME=(!empty($data['MIDDLE_NAME'])) ? $data['MIDDLE_NAME'] : null;
       $this->LAST_NAME=(!empty($data['LAST_NAME'])) ? $data['LAST_NAME'] : null;
       $this->GENDER=(!empty($data['GENDER'])) ? $data['GENDER'] : null;
       $this->REMARK=(!empty($data['REMARK'])) ? $data['REMARK'] : null;      
       
    /* $this->INSERT_USER_ID=(!empty($data['INSERT_USER_ID'])) ? $data['INSERT_USER_ID'] : null;
       $this->UPDATE_USER_ID=(!empty($data['UPDATE_USER_ID'])) ? $data['UPDATE_USER_ID'] : null;
       $this->INSERT_DATETIME=(!empty($data['INSERT_DATETIME'])) ? $data['INSERT_DATETIME'] : null;
       $this->UPDATE_DATETIME=(!empty($data['UPDATE_DATETIME'])) ? $data['UPDATE_DATETIME'] : null;
       $this->STATUS=(!empty($data['STATUS'])) ? $data['STATUS'] : 1; //active=1 // inactive=0
     */     
   }
   /*binding functions*/
   public function getArrayCopy()
   {
       return get_object_vars($this);
   }
}

?>